package com.yeren.file.file;

import java.io.File;
import java.io.FileFilter;

/**
 * liubiao
 */
public class TestFile {
	public static void main(String[] args) {
		File file=new File("src"+File.separator+"com");
		
		
		File[] lf=file.listFiles(new FileFilter(){
			public boolean accept(File pathname){
				return pathname.getName().contains("l");
			}
		});
		for (File file2 : lf) {
			System.out.println(file2);
		}
	}
}
